package com.sihan.framework.etm.dto;

import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;

import lombok.Data;

@Data
public class UserRoleDTO implements Serializable {

  private static final long serialVersionUID = -4686371628933345968L;

  /**
   * 用户Id
   */
  @NotNull(message = "id")
  private String id;

  /**
   * 角色Ids
   */
  private List<String> roleIds;

  @Override
  public String toString() {
    return "用户id[" + id +
            "]、角色id[" + (roleIds == null ? "" : roleIds.toString()) +
            "]。";
  }
}
